* {
  margin: 0;
  padding: 0;
}
body {
  background-color: #f5f5f5;
}

header {
  width: 1160px;
  height: 60px;
  margin: 0 auto;
}

.logo a {
  display: block;
  width: 121px;
  height: 60px;
  background: url(/img/LOGO.png) no-repeat center;
  background-size: contain;
  float: left;
}

header nav {
  width: fit-content;
  height: 60px;
  float: right;
}

nav a {
  display: block;
  float: left;
  width: 64px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 14px;
  color: #666666;
  letter-spacing: 0.23px;
  position: relative;
}

nav a + a {
  margin-left: 35px;
}

nav span {
  display: block;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: #865eff;
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  /* 不管 宽度 是多少 永远 水平居中 */
  transition: 0.4s;
}

header nav .icon {
  display: block;
  border-radius: 2px;
  width: 56px;
  height: 56px;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -150%);
  transition: 0.3s;
}

header nav .web {
  background: url(/img/WEB.png) no-repeat center;
  background-size: 64%;
}

header nav .ui {
  background: url(/img/UI.png) no-repeat center;
  background-size: 64%;
}

header nav a:hover .icon {
  transform: translate(50%, -50%);
}

header nav .w-u:hover {
  font-size: 0;
}

nav a:hover {
  color: #000;
}

nav a:hover .line {
  width: 45px;
}

header nav .act .icon {
  transform: translate(50%, -50%);
}

header nav .act {
  font-size: 0%;
}

/* banner */
.banner-c {
  height: 300px;
  background-image: url(http://www.bufanui.com/pages/front/pages/static/img/ui-banner.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 0 auto;
  margin-bottom: 38px;
}

/* 导航 */
.nav-c {
  width: 100%;
  box-shadow: 0 4px 6px 0 rgb(0 0 0 / 3%);
  background-color: #f5f5f5;
  position: sticky;
  top: -1px;
  right: 0;
  z-index: 100;
}
.nav-c nav {
  width: fit-content;
  height: 36px;
  padding: 16px;
  padding-bottom: 0;
  margin: 0 auto;
}

.nav-c a {
  height: 36px;
  font-size: 18px;
  line-height: 18px;
  font-weight: bolder;
  color: #666666;
  letter-spacing: 0;
}

/* 优势 */
.super {
  width: 1160px;
  height: 242px;
  margin: 90px auto 120px;
}

.super-c {
  width: fit-content;
  overflow: hidden;
  margin: 0 auto;
}

/* 左边 */
.bufan {
  width: 442px;
  height: 242px;
  float: left;
  /* margin-left: 84px; */
}

/* 中间 */
.vs {
  width: 157px;
  height: 242px;
  float: left;
  margin: 0 35px;
  position: relative;
}

.vs span {
  font-size: 100px;
  color: #e4e4e4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vs p {
  width: fit-content;
  font-size: 18px;
  font-weight: bolder;
  color: #333333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 右边 */
.other {
  width: 415px;
  height: 242px;
  float: left;
}

.ft > div {
  width: fit-content;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  padding: 0 10px;
  color: #ffffff;
  letter-spacing: 0;
}

.ft > div + div {
  margin-top: 14px;
}

.bufan > div {
  float: right;
  border-radius: 25px 6px 6px 25px;
  padding: 0 14px 0 25px;
}

.bufan .bf-1 {
  background-image: linear-gradient(270deg, #39b6f9 0%, #3c70f2 100%);
  box-shadow: 0 4px 6px 0 rgba(36, 152, 242, 0.3);
}
.bufan .bf-2 {
  background-image: linear-gradient(270deg, #a066fc 0%, #3514ce 100%);
  box-shadow: 0 4px 6px 0 rgba(72, 34, 214, 0.3);
}
.bufan .bf-3 {
  background-image: linear-gradient(270deg, #7c96b3 0%, #4b6077 100%);
  box-shadow: 0 4px 6px 0 rgba(121, 138, 158, 0.3);
}
.bufan .bf-4 {
  background-image: linear-gradient(270deg, #ffa259 0%, #fe5e80 100%);
  box-shadow: 0 4px 6px 0 rgba(249, 123, 93, 0.3);
}

.other > div {
  background-image: linear-gradient(270deg, #a8a8a8 0%, #676767 100%);
  box-shadow: 0 4px 6px 0 rgba(87, 87, 87, 0.3);
  padding: 0 25px 0 14px;
  border-radius: 6px 25px 25px 6px;
}

/* 标题1 */
.title {
  width: 1160px;
  height: 73px;
  margin: 55px auto 30px;
  position: relative;
}

.stage p {
  display: inline-block;
  width: fit-content;
  height: 37px;
  line-height: 37px;
  font-weight: bolder;
  font-size: 26px;
  color: #333333;
  letter-spacing: 0;
  vertical-align: middle;
}

.stage span {
  display: inline-block;
  font-size: 13px;
  color: #ffffff;
  width: 56px;
  height: 22px;
  line-height: 22px;
  font-weight: bolder;
  text-align: center;
  background-color: #865eff;
  border-radius: 2px;
  margin-right: 11px;
}

.title > p {
  font-size: 18px;
  line-height: 18px;
  color: #888;
  letter-spacing: 0;
  margin-top: 15px;
}
.time {
  position: absolute;
  right: 0;
  top: 0;
  height: 70px;
  color: #333;
}

.time span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}

.time .num {
  font-size: 60px;
  line-height: 70px;
}

/* 相同结构 */
.same {
  width: 1160px;
  height: 210px;
  margin: 0 auto;
}

.same div {
  width: 570px;
  height: 210px;
  background: #ffffff;
  border-radius: 5px;
  border-radius: 5px;
  opacity: 1;
  transition: 0.4s;
}

.same .left {
  float: left;
  position: relative;
  transition: 0.4s;
}

.same .right {
  float: right;
  position: relative;
  transition: 0.4s;
}

.same a {
  text-decoration: none;
  list-style: none;
  display: block;
  text-align: left;
  margin: 22px 0 22px 25px;
  font-size: 15px;
  line-height: 25px;
  color: #333;
  font-weight: bolder;
  transition: 0.4s;
}

.same a span + span {
  color: #999;
  font-weight: normal;
  padding-left: 1em;
}

/* 复用 */
/* hover时的图标 */
.hov .io {
  display: block;
  width: 50px;
  height: 50px;
  opacity: 0;
}

.hov .icon-ps {
  position: absolute;
  top: 76px;
  left: 210px;
}

.hov .icon-ui {
  position: absolute;
  top: 76px;
  right: 210px;
}

/* hover时 */
.hov:hover a {
  opacity: 0;
}

.base .hov:hover {
  background: linear-gradient(270deg, #a066fc 0%, #3514ce 100%);
  opacity: 0.9;
  transform: translateY(-4px);
}

.hov:hover .io {
  opacity: 1;
}

/* 标题2 */
.two .stage span {
  background: #71b903;
}

/* 提升 */
.hov .icon-pix {
  position: absolute;
  top: 76px;
  left: 210px;
}

.hov .icon-timg {
  position: absolute;
  top: 76px;
  right: 210px;
}

.promote .hov:hover {
  background: linear-gradient(270deg, #9ccf0d 0%, #6eb802 100%);
  transform: translateY(-4px);
}

/* 标题3 */
.three .stage span {
  background: #3b89f4;
}

/* 思维 */
.hov .icon-SK {
  position: absolute;
  top: 76px;
  left: 210px;
}

.hov .icon-AX {
  position: absolute;
  top: 76px;
  right: 210px;
}
.thought .hov:hover {
  background: linear-gradient(270deg, #39b6f9 0%, #3c70f2 100%);
  transform: translateY(-4px);
}

/* 标题4 */
.four .stage span {
  background: #fe7488;
}

/* 4.项目 */

.project div {
  width: 570px;
  height: 170px;
}

.free {
  width: 1160px;
  height: 30px;
  margin: 90px auto 20px;
}

.free > span {
  font-size: 22px;
  font-weight: bolder;
  color: #000000;
  letter-spacing: 0.35px;
}

.free span + span {
  font-size: 14px;
  font-weight: normal;
  color: #969696;
  letter-spacing: 0;
  margin-left: 11px;
}

.hov .icon-h5-1 {
  position: absolute;
  top: 76px;
  left: 210px;
}

.hov .icon-h5 {
  position: absolute;
  top: 76px;
  right: 210px;
}

.project .hov:hover {
  opacity: 0.9;
  background: linear-gradient(270deg, #ffa259 0%, #fe5e80 100%);
  transform: translateY(-4px);
}

/* 公开课 */
.course {
  width: 1160px;
  height: 152px;
  margin: 0 auto;
}

.public {
  float: left;
}
.public + .public {
  margin-left: 20px;
}

.public a {
  display: block;
  width: 275px;
  height: 105px;
  border-radius: 5px;
  position: relative;
  transition: 0.4s;
}

.public .Ai {
  background-image: linear-gradient(90deg, #ff8c00 0%, #ffbb00 100%);
}
.public .Ae {
  background-image: linear-gradient(90deg, #9944c4 0%, #bc63cc 100%);
}
.public .Sketch {
  background: #120a33;
}
.public .Ps {
  background-image: linear-gradient(90deg, #037be0 0%, #36bbf8 100%);
}

.public img {
  display: block;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.4s;
}

.public p:nth-child(2) {
  font-size: 14px;
  line-height: 20px;
  color: #333333;
  margin: 8px 0 4px;
}

.public .teacher {
  font-size: 12px;
  line-height: 17px;
  color: #999999;
  margin: 0;
}

.public a:hover {
  transform: translateY(-4px);
}

.public a:hover img {
  /* 元素绕着旋转中心，顺时针旋转30度 */
  transform: translate(-50%, -50%) rotate(30deg);
  /* 设置元素的旋转中心 支持方位词*/
  transform-origin: center center;
}

/* 底部 */
.foot {
  width: 100%;
  height: 315px;
  margin-top: 90px;
  background: #282c35;
  overflow: hidden;
}
.foot-c {
  width: 1160px;
  height: 208px;
  margin: 0 auto;
  margin-top: 62px;
}

.foot-c > div {
  float: left;
  height: 195px;
  margin-right: 50px;
}

/* 地址,电话 */
.add-tel {
  padding: 0 25px;
}

.address {
  width: 225px;
  height: 98px;
}

.tel {
  width: 225px;
  height: 73px;
}

.foot-c .first {
  font-size: 14px;
  line-height: 20px;
  color: #999999;
}

.first + p {
  font-size: 18px;
  line-height: 25px;
  margin-top: 8px;
  color: #ffffff;
}

.tel .tel-time {
  font-size: 12px;
  line-height: 18px;
  color: #999999;
}

/* WeChat QQ */
.wx,
.qq {
  width: 200px;
  height: 56px;
  margin-bottom: 32px;
}

.foot-c .regular {
  font-size: 14px;
  line-height: 20px;
  color: #999999;
}

.foot-c .regular + p {
  font-size: 18px;
  line-height: 28px;
  margin-top: 8px;
  color: #fff;
}

/* 二维码 */
.foot-c .qr {
  margin: 0 62px;
}
.foot-c .qr p {
  font-size: 14px;
  color: #999999;
  text-align: center;
  line-height: 1;
  margin-bottom: 12px;
}

.foot-c .qr span {
  font-weight: bolder;
  color: #fff;
}

.foot .qr img {
  display: block;
  width: 150px;
  height: 150px;
}

.foot-c .qr + .qr {
  margin-right: 0;
}

/* 底部链接 */
.link {
  width: 100%;
  height: 60px;
  background: #20232a;
}

.link-c {
  width: 1160px;
  height: 60px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  line-height: 60px;
  color: #fff;
}

.link-c a {
  list-style: none;
  text-decoration: none;
  color: #ffffff;
  padding: 0 5px;
}

.link-c span {
  padding-left: 24px;
}

/* 侧边栏 */
.bar {
  border-radius: 25px;
  width: 153px;
  height: 50px;
  background-image: linear-gradient(139deg, #a066fc 0%, #5939ec 100%);
  position: fixed;
  bottom: 200px;
  right: 0;
  transform: translateX(30px);
  transition: 0.3s;
}

.bar a {
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: 50px;
  font-size: 15px;
  color: #fff;
  letter-spacing: 1px;
}

.bar a::before {
  display: inline-block;
  content: "";
  width: 18px;
  height: 18px;
  line-height: 18px;
  background: url(/img/zx.png) no-repeat center;
  -webkit-background-size: cover;
  background-size: cover;
  vertical-align: middle;
  margin-right: 6px;
}

.bar:hover{
  transform: translateX(0);
}